import React,{FC} from "react";
import {Typography,Input} from 'antd'
import  {QuestionTextareaDefaultProps,QuestionTextareaPropsType} from './interface'
const {TextArea}=Input
const QuestionInput:FC<QuestionTextareaPropsType>=(props:QuestionTextareaPropsType)=>{
    const {Paragraph}=Typography
    const {title,placeholder}={...QuestionTextareaDefaultProps,...props}
    return <div>
        <Paragraph strong>{title}</Paragraph>
        <div>
            <TextArea placeholder={placeholder}></TextArea>
        </div>
    </div>
}
export default QuestionInput